import {FAKE_METHOD, FAKE_PATH} from "./common/const";
import "reflect-metadata"

 function Request(method:any){
    return function(path:any){
        return function (target:any,protoKey:string){
            Reflect.defineMetadata(FAKE_METHOD,method,target,protoKey)
            Reflect.defineMetadata(FAKE_PATH,path,target,protoKey)
        }

    }
}
export const Get = Request('Get')
export const Post = Request('Post')
